<template>
  <div>
    <el-divider>{{ $t('login.otherLoginType') }}</el-divider>
    <div class="login_bottom_box"><i class="iconfont icon_weixin login_icon" @click="gowxlogin" /></div>
    <wx-login ref="wxLogin" />
  </div>
</template>

<script>
// import QRCode from 'qrcodejs2';
import wxLogin from '@/plugin/wxCenter/login';
export default {
  components: {
    wxLogin
  },
  props: {
    tenantid: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      dialogVisible: false
    };
  },
  mounted() {},
  methods: {
    handleClose() {
      this.dialogVisible = false;
      this.$refs.Qrcode.innerHTML = '';
    },
    gowxlogin() {
      this.$refs.wxLogin.gowxlogin();
    }
  }
};
</script>

<style scoped>
.login_bottom_box {
  text-align: center;
}
.login_icon {
  font-size: 30px;
  color: #1aad19;
  cursor: pointer;
}
</style>
